import request from '@/utils/request'

// 查询设备信息列表
export function listEquipment_info(query) {
  return request({
    url: '/system/equipment_info/list',
    method: 'get',
    params: query
  })
}

// 查询设备信息详细
export function getEquipment_info(equipmentId) {
  return request({
    url: '/system/equipment_info/' + equipmentId,
    method: 'get'
  })
}

// 新增设备信息
export function addEquipment_info(data) {
  return request({
    url: '/system/equipment_info',
    method: 'post',
    data: data
  })
}

// 修改设备信息
export function updateEquipment_info(data) {
  return request({
    url: '/system/equipment_info',
    method: 'put',
    data: data
  })
}
//可用数量
export function isAvailableCount() {
  return request({
    url: '/system/equipment_info/isAvailableCount',
    method: 'get',
  })
}
// 删除设备信息
export function delEquipment_info(equipmentId) {
  return request({
    url: '/system/equipment_info/' + equipmentId,
    method: 'delete'
  })
}
